package com.ouc.dataMange.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ouc.common.annotation.Excel;
import com.ouc.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 文件管理对象 sys_upload
 *
 * @author ruoyi
 * @date 2022-09-19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Upload extends BaseEntity {
  private static final long serialVersionUID = 1L;

  /**
   * 文件id
   */
  private Integer fileId;

  /**
   * 用户id
   */
  @Excel(name = "用户id")
  private Integer userId;

  /**
   * 用户昵称
   */
  @Excel(name = "用户昵称")
  private String userName;

  /**
   * 文件日期
   */
  @JsonFormat(pattern = "yyyy-MM-dd")
  @Excel(name = "文件日期", width = 30, dateFormat = "yyyy-MM-dd")
  private Date fileTime;

  /**
   * 数据区域
   */
  @Excel(name = "数据区域")
  private String fileArea;

  /**
   * 变量名
   */
  @Excel(name = "变量名")
  private String variableName;

  /**
   * 变量列表
   */
  @Excel(name = "变量列表")
  private String variableList;

  /**
   * 开始经度
   */
  @Excel(name = "开始经度")
  private Double startLon;

  /**
   * 结束经度
   */
  @Excel(name = "结束经度")
  private Double endLon;

  /**
   * 开始纬度
   */
  @Excel(name = "开始纬度")
  private Double startLat;

  /**
   * 结束纬度
   */
  @Excel(name = "结束纬度")
  private Double endLat;

  /**
   * 经度间隔
   */
  @Excel(name = "经度间隔")
  private Double lonInterval;

  /**
   * 纬度间隔
   */
  @Excel(name = "纬度间隔")
  private Double latInterval;

  /**
   * 总层数
   */
  @Excel(name = "总层数")
  private Integer levelNum;

  /**
   * 文件所属设备id
   */
  @Excel(name = "存储设备")
  private Integer fileMemoryId;

  @Excel(name = "数据集")
  private Integer fileDataSetId;

  /**
   * 文件路径
   */
  @Excel(name = "文件路径")
  private String filePath;

  @Excel(name = "缩略图路径")
  private String filePngPath;

  /**
   * 文件大小（MB）
   */
  @Excel(name = "文件大小", readConverterExp = "M=B")
  private Integer fileSize;

  /**
   * 文件上传时间
   */
  @Excel(name = "文件上传时间")
  private Date fileUploadTime;

  /**
   * 最后浏览时间
   */
  @JsonFormat(pattern = "yyyy-MM-dd")
  @Excel(name = "最后浏览时间", width = 30, dateFormat = "yyyy-MM-dd")
  private Date fileViewTime;

  /**
   * 浏览次数
   */
  @Excel(name = "浏览次数")
  private Integer fileViewNum;

  /**
   * 文件下载次数
   */
  @Excel(name = "文件下载次数")
  private Integer fileDownloadNum;

}
